package com.aier.school.service;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

import com.aier.school.entity.SchoolTeacherDuty;


public interface ISchoolDutyService {

    /**
     * 根据教师名字排序
     */
    int TEACHER_SORTABLE_NAME=1;
    
    /**
     * 根据教师名字倒排序
     */
    int TEACHER_SORTABLE_NAME_DESC=2;
    
    /**
     * 根据账号排序
     */
    int TEACHER_SORTABLE_ACCOUNT=3;
    
    /**
     * 根据账号倒排序
     */
    int TEACHER_SORTABLE_ACCOUNT_DESC=4;
    
    /**
     * 根据id查询值班信息
     * @param lid
     * @return
     */
    SchoolTeacherDuty selectbydid(Long did);
    
    /**
     * 添加假期值班信息
     * 
     */
    int insertSchoolTeacherDuty(int sid,Long tid,Timestamp sdate,Timestamp edate);

    /**
     * 根据值班id删除值班信息
     * 
     */
    int deleteSchoolTeacherDuty(Long did);
    
    /**
     * 根据值班id修改值班信息
     */
    int updateSchoolTeacherDutyByid(Long did,Timestamp sdate,Timestamp edate);

    /**
     * 根据条件分页查询出所有值班信息
     * @param page
     * @param monthAttendListPagesize
     * @param sortable
     * @param sid
     * @param uid
     * @param tids
     * @param txt_sdate
     * @param txt_edate
     * @return
     */
    Map<String, Object> searchstDutysByCondition(int page,
            int monthAttendListPagesize, int sid,
            List<Long> tids, String txt_sdate, String txt_edate);
    
    
    
}
